From 5cd0804cec9286e7c6c049fe97f8620aaaa2be9b Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Fri, 16 Dec 2022 11:07:27 +0000 Subject: [PATCH] Use --memopt option when calling TOPCOM Bug: https://github.com/Macaulay2/M2/issues/1707 Bug: https://github.com/Macaulay2/M2/issues/2712 Last-Update: 2022-12-15 Saves memory using caching to avoid example/test failures. Gbp-Pq: Name topcom-memopt.patch --- M2/Macaulay2/packages/Topcom.m2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/M2/Macaulay2/packages/Topcom.m2 b/M2/Macaulay2/packages/Topcom.m2 index 15832ad..e9af682 100644 --- a/M2/Macaulay2/packages/Topcom.m2 +++ b/M2/Macaulay2/packages/Topcom.m2 @@ -317,7 +317,7 @@ topcomIsTriangulation(Matrix, List) := Boolean => opts -> (Vin, T) -> ( << "Index sets do not correspond to full-dimensional simplices" << endl; return false; ); - (outfile, errfile) := callTopcom("points2nflips --checktriang -v", {topcomPoints(V, Homogenize=>false), [], T }); + (outfile, errfile) := callTopcom("points2nflips --checktriang --memopt -v", {topcomPoints(V, Homogenize=>false), [], T }); not match("not valid", get errfile) ) -- 2.30.2